package com.btex.app.tools;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;

public class OptiosTool {
	
	public static DisplayImageOptions getOptions_normal(int drawableId){
		DisplayImageOptions options_normal = new DisplayImageOptions.Builder()
		.showImageOnLoading(drawableId)
		.showImageForEmptyUri(drawableId)
		.showImageOnFail(drawableId)
		.cacheInMemory(true)
		.cacheOnDisk(true)
		.considerExifParams(true)
		.displayer(new RoundedBitmapDisplayer(0))
		.build();

		return options_normal;
	}
	public static DisplayImageOptions getOptions_normal(){
		DisplayImageOptions options_normal = new DisplayImageOptions.Builder()
		.cacheInMemory(true)
		.cacheOnDisk(true)
		.considerExifParams(true)
		.displayer(new RoundedBitmapDisplayer(0))
		.build();

		return options_normal;
	}
	public static DisplayImageOptions getOptions(int drawableId){
		DisplayImageOptions options = new DisplayImageOptions.Builder()
		.showImageOnLoading(drawableId)
		.showImageForEmptyUri(drawableId)
		.showImageOnFail(drawableId)
		.cacheInMemory(true)
		.cacheOnDisk(false)
		.considerExifParams(true)
		.displayer(new CircleBitmapDisplayer())
		.build();
		return options;
	}
	
}
